package com.user.service;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.achievement.entity.Course;
import com.common.util.TablePage;
import com.exam.entity.Exam;
import com.user.entity.Student;
import com.user.entity.dto.StudentDTO;

public interface IStudentService {
	public List<StudentDTO> findAll();
	public boolean saveOrUpdate(StudentDTO dto);
	public boolean delete(Long id);
	public List<Exam> findExam(Long id);
	public StudentDTO findLogin(String num,String password);
	public TablePage<Course> findCourses(Specification<Course> spec,Pageable pageable);
	public TablePage<Student> findPage(Specification<Student> spec,Pageable pageable);
	public boolean hasCourse(Long id);
	public void activate(Long id);
	public void revoked(Long id);
	public void saveOrUpdate(Student student);
	public boolean isNumExist(Student student);
	public List<Long> getCourseIds(Long id);
	public List<Course> getCourseList(Long id);
	public void updatePwd(Long id,String pwd);
}
